<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="text" style="width: 800px; height: 200px; font-size: 180px;">
    <script>
        /*
           键盘事件： 
              1.keyup:键盘弹起时触发
              2. keydown:键盘按下时一直触发
              3. keypress:键盘按下时一直触发
              4. keypress: 功能键不能触发  
        */
        document.addEventListener('keyup', function (e) {
            console.log('------------keyup:键盘弹起时触发------------');
        });
        document.addEventListener('keydown', function (e) {
            console.log('------------keydown:键盘按下时一直触发------------');
        });
        document.addEventListener('keypress', function (e) {
            console.log('------------keypress:键盘按下时一直触发------------');
        });

        document.onmou
        
    </script>
</body>

</html>